/**
 * @Version v1.0
 * @Description: TODO
 * @Author ZHANZHONGXIN
 * @Date 2022/5/7 11:07
 * @Copyright 博为峰
 */
public class ArrayDemo05 {
    public static void main(String[] args) {
        /*
           1.数据类型[][] 数组名 = new 数据类型[二维数组中一维数组的个数][一维数组中元素的个数];
         */
        int[][] arr = new int[3][2];
        arr[0][1] = 9;
//        System.out.println(arr[0][1]);
//        System.out.println(arr[0]);//二维数组中一维数组的地址[I@4554617c
//        System.out.println(arr);//二维数组的地址[[I@74a14482

//        遍历
        for (int i = 0; i < arr.length; i++) {
//            System.out.println(arr[i]);
            for (int j = 0; j < arr[i].length; j++) {
                System.out.println(i + "," + j + ":" + arr[i][j]);
            }
        }
    }
}
